Multi-stage pattern reduction for natural language processing

ABSTRACT

A computer program product for controlling the computer&#39;s processor to perform responsive actions a natural language input has: (1) vocabulary, phrase and concept databases of words, phrase and concepts, respectively, that can be recognized in the inputted communication, wherein each of these database elements is representable by a designated semantic symbol, (2) means for searching the inputted communication to identify the words in the communication that are contained within the vocabulary database, (3) means for expressing the communication in terms of the word semantic symbols that correspond to each of the words identified in the inputted communication, (4) means for searching the communication when expressed in terms of its corresponding word semantic symbols so as to identify the phrases in the communication that are contained within the phrase database, (5) means for expressing the communication in terms of the phrase semantic symbols that correspond to each of the phrases identified in the communication, (6) means for searching the communication when expressed in terms of its corresponding phrase semantic symbols so as to identify the concepts in the communication that are contained within the concept database, and (7) means for expressing the communication in terms of the concept semantic symbols that correspond to each of the concepts identified in the inputted communication, wherein these concept semantic symbols are recognizable by the processor and can cause the processor to take action responsive to the inputted communication.

PRIORITY

This application is a continuation under 35 USC 120 of U.S. patent application Ser. No. 10/390,270, filed Mar. 14, 2003, now U.S. Pat. No. 6,980,949 entitled, “Natural Language Processor” by W. Randolph Ford which is incorporated by reference in its entirety.

CROSS-REFERENCE TO RELATED APPLICATION

This application is related to U.S. patent application Ser. No. 09/996,887, filed Nov. 30, 2001 and entitled “Multi-Stage Reduction System & Method for Processing Natural Language.” The teachings of this application are incorporated herein by reference to the extent that they do not conflict with the teaching herein.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to data processing and speech signal processing. More particularly, this invention relates to methods, systems and algorithms that provide a computer interface for converting users' natural language messages, that are entered into the interface via speech and handwriting recognition software or by the use of a keyboard, into a query or command that can be processed by a computer.

2. Description of the Related Art

The need for and advantages of an improved interface with a computer have long been recognized. Thus, many complex methods and algorithms for processing natural language have been developed.

There are two primary approaches being used today in natural language processing. The approach with the longest history is “parsing techniques.” In this approach, a user's speech input is processed in a manner very similar to the method of making sentence diagrams that are often learned in grammar school. That is, the input is scanned for a possible subject, verb, direct object, etc. in an attempt to fit the input against a recognized structure in a rule-based table.

Natural language processors using this approach are characteristically very large and require a great deal of processing power to operate. Their strength is that they allow for the identification of unknown objects in an input. For example, in the user input “Get me the phone number for Bob.” A parsing system can very efficiently identify the action (“get”), the directionality (implied by “me”), the object (“the phone number”), and the preposition (“for”). This leaves the noun “Bob” which a parsing system can easily use as an argument or parameter in searching a database without ever having seen this noun within the parsing tables. This is possible because parsing systems have the ability to eliminate all things understood through their extensive processing.

Unfortunately, the greatest weakness of parsing systems is their inefficient accommodation of users' variability of expression. There are literally thousands of ways that a user might ask for a phone number, and parsing systems are not very efficient, or even capable of accepting different users unique expressions of a concept. As such systems accommodate more and more various ways that a concept might be expressed, they increase markedly in size and in processing power required for their operation. That any such system could accommodate the user input “Would you go ahead and get me the phone number for Bob from my contact list?” is highly unlikely. Moreover, because parsing systems are very much rule-based, it is difficult for such systems to process ungrammatical or incomplete messages.

Today, many companies offering speech recognition technology attempt to circumvent the “variability of expression” problem by employing subsets of language. In one approach, spoken input is analyzed for keywords. Keywords are then matched with application functionality. In another approach, application users are expected to learn a set of specific commands that are matched with application functionality.

Systems that analyze keywords typically operate with a much higher degree of understanding than parsing systems. For example, in this keyword approach, assume the user inputs “Would you go ahead and get me the phone number for Bob from my contact list?” the system ignores all words except “get”, “phone number”, “Bob”, and “contact list”.

This approach provides a very efficient system for skirting the “variability of expression” problem, but it does have serious limitations, one academic and one pragmatic. On the academic side, more complex inputs will baffle a keyword system. For example, if the user were to express him/herself as: “Rather than get me the phone number for Bob from the contact list, for now, I only need his address,” the keyword system probably would be unable to process this request.

On the pragmatic side, a possibly greater problem in this approach is that the proper noun “Bob” must be in one's keyword tables in order to be recognized. This implies two critical issues: first, that such keyword systems are only good for information retrieval, and second, at some point, it may not be possible to accommodate all such possible nouns in one's keyword tables.

In light of these short-comings on natural language processing, a third approach has also come into use. The “educating the user” approach often takes the form of a series of restrictions on the type of verbal inputs allowed; with the result being restrictions that require one to speak his/her way through computer menus. These techniques have been available in commercial products for years, but have not achieved widespread acceptance. Many potential users continue to refuse to accept them because they apparently view such restriction methods as being inefficient, overly time consuming and not sufficiently user friendly.

In general, it can be said that when we use language with a computer, we expect the same particular levels of understanding from the computer as when we speak to another human. Correct understanding of natural language input information, which is an easy task for a human being, is clearly not being easily achieved by using any of the current conventional approaches.

Thus, despite the above noted prior art, a need continues to exist for improved methods, systems and algorithms which provide for an interface with a computer. Specifically, an efficient method is needed that can accommodate all of the various ways that a user might express a concept in trying to communicate with a computer.

3. Objects and Advantages

As a means to better understand the present invention, it is instructive to also consider the objects and advantages of the present invention.

It is an object of the present invention to provide an improved natural language interface that enables a computer to understand communications that are inputted into it.

It is an object of the present invention to provide an improved natural language, voice interface with a computer.

It is another object of the present invention to provide a natural language interface with a computer that possesses the ability to come close to human understanding of communications.

It is yet another object of the present invention to provide a natural language interface with a computer that can accommodate ungrammatical or incomplete sentences as input information.

It is an object of the present invention to provide a natural language interface with a computer that can resolve ambiguous information, such as which form of a word is meant when it can be used as either a noun or verb.

It is another object of the present invention to provide a natural language interface with a computer that can understand an input within a time period that is comparable to that which occurs in human-to-human verbal communications.

It is yet another object of the present invention to provide a natural language interface with a computer that can reduce a user's input down to a concept that is understandable by the computer's processor.

It is also an object of the present invention to provide a natural language interface with a computer that can operate efficiently within the memory and processing restrictions imposed by current state of the art personal computers.

These and other objects and advantages of the present invention will become readily apparent, as the invention is better understood by reference to the accompanying drawings and the detailed description that follows.

SUMMARY

The present invention is generally directed towards mitigating the limitations and problems identified with prior methods used to provide an interface for a computer. In accordance with the present invention, a preferred embodiment of this invention takes the form of a computer program for controlling a processor to generate actions in the processor which are responsive to a natural language communication input.

This computer program includes: (1) vocabulary, phrase and concept databases of words, phrase and concepts, respectively, that can be recognized in the inputted communication, wherein each of these database elements is representable by a designated semantic symbol, (2) means for searching the inputted communication to identify the words in the communication that are contained within the vocabulary database, (3) means for expressing the communication in terms of the word semantic symbols that correspond to each of the words identified in the inputted communication, (4) means for searching the communication when expressed in terms of its corresponding word semantic symbols so as to identify the phrases in the communication that are contained within the phrase database, (5) means for expressing the communication in terms of the phrase semantic symbols that correspond to each of the phrases identified in the communication, (6) means for searching the communication when expressed in terms of its corresponding phrase semantic symbols so as to identify the concepts in the communication that are contained within the concept database, and (7) means for expressing the communication in terms of the concept semantic symbols that correspond to each of the concepts identified in the inputted communication, wherein these concept semantic symbols are recognizable by the processor and are used by the processor so as to cause the processor to take action responsive to the inputted communication.

In other preferred embodiments of the present invention, the present invention can take the form of a method for generating data in a processor usable form as a result of having received a natural language communication input, or a computer user interface that generates data in a processor usable form from a natural language input.

Thus, there has been summarized above, rather broadly, the present invention in order that the detailed description that follows may be better understood and appreciated. There are, of course, additional features of the invention that will be described hereinafter and which will form the subject matter of any eventual claims to this invention.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a preferred embodiment of the present invention and the input and output devices with which it communicates.

FIGS. 2( a)-(c) illustrate portions of the words in the vocabulary database or vocabulary lookup table of the present invention and the semantic symbols that are used to represent such words.

FIGS. 3( a)-(b) illustrate portions of the phrases in the phrase database or phrase lookup table of the present invention and the semantic symbols that are used to represent such phrases.

FIG. 4 identifies the significance of the alpha numeric characters used to introduce the semantic symbols for the phrases within the phrase database of the present invention.

FIGS. 5( a)-(b) illustrate a portion of the concepts in the concept database or concept lookup table of the present invention and the semantic symbols that are used in the present invention to represent such concepts.

FIG. 6 illustrates how the present invention converts or reduces a communication input to its representation as a vector comprised of the semantic symbols that correspond to the words of the inputted communication.

FIG. 7 illustrates the order of searching an inputted vector for phrases by a preferred embodiment of the algorithm of the present invention.

FIG. 8 illustrates computer code which utilizes the present invention's identification of the concepts in an inputted communication to direct the responsive action of a computer.

FIG. 9 illustrates the printout from a display screen of the present invention which shows the intermediate steps used by the software disclosed herein for entering into a computer the complex communication of “I would like to enter a credit card transaction and I want to create a new savings account with a balance of $860.20.”

FIGS. 10( a)-(c) illustrate an example of the data space reduction that can be achieved by using a preferred form of the algorithm of the present invention.

DETAILED DESCRIPTION

Before explaining at least one embodiment of the present invention in detail, it is to be understood that the invention is not limited in its application to the arrangements of the component parts or process steps set forth in the following description or illustrated in the drawings. The invention is capable of other embodiments and of being practiced and carried out in various ways. Also, it should be understood that the phraseology and terminology employed herein are for the purpose of description and should not be regarded as limiting.

The biggest problem in creating a natural language processor is not having a processor understand the meaning of a finite set of words, or even being able to reduce a message down to the concept it conveys. It is, rather, dealing with all of the various ways that words are combined to convey a concept. In short, one must find a way to accommodate humans' variability of expression.

Working in the favor of one attempting to create a natural language processor, however, are a few facts. It has been said that the average person, while knowing tens of thousands of words and their meanings, uses fewer than two thousand unique words in the course of a day. Also, from studies of voice communication it is known that the average verbal message is between seven or eight words.

These facts can give us some idea of the size of the challenge that one faces in creating a natural language processor that can understand a person having a typical vocabulary and speaking in an average manner. Even assuming that we know which two thousand words an individual is going to use in a given day, such an individual could conceivably utter approximately 4.1.times.10.sup.20 distinct, nine word communications, assuming no repetition of words in these communications, (i.e., 2000.times.1999.times . . . times.1992 communications). Thus, the task of recognizing all the possible concepts contained within such an exceedingly large number of distinct communications seems initially to be quite unmanageable.

Given the great number of ways in which humans can combine words into messages, how could one possibly create a computer program to understand natural language? I have found that the answer lies in how information is organized in the human brain.

For decades, psychologists were under the impression that many chess masters, in addition to being very skilled at the game, must have photographic memories. This belief evolved because most chess masters exhibit the ability to precisely recall many of their past games—move for move. Additionally, chess masters themselves have often reported having such photographic memory capabilities.

However, after studying the chess masters' memory abilities more closely, it was discovered that such abilities have important limitations. For example, it was discovered that this chess board memorization skill was greatly diminished and eventually lost when the chess pieces were randomly placed on a chess board.

Thus, what appeared to be a feat of limitless memory was eventually seen to be a finite encoding of memory related to stages of cognition based on the rules by which chess pieces may be moved. For example, many knowledgeable chess players can glance at a chess board in the first three moves of a game and recognize it as such. Through study, the gifted chess master can apparently remember and recognize the pieces on a chess board as being those associated with one of the many possible combinations achievable after a much higher number of moves.

This chess example is also appropriate because it is represents an area in which great displays of human intelligence have been apparently simulated by a computer. However, this apparent simulation proves to really be more akin to mimicking of human intelligence through the use of pattern reduction techniques. By utilizing snap shots of recognized chess patterns generated by humans, one is thereby able to give a computer an appearance of intelligence, an artificial intelligence, in its attempts at solving chess problems. I say appearance because there is in fact nothing intelligent about what the computer is doing in such chess matches (i.e., the computer chooses among the patterns in its database to best respond to any placement of the chess pieces on a chess board). The computer's behavior fails even the simplest of definitions of intelligence (e.g., Piaget: “Intelligence is that thing we use when we don't know what to do”).

The nature of intelligence, however, is not the focus of the present invention. Rather, the present invention addresses the problem of how to take all of the possible random generations of language and identify which of these are actually meaningful. Through the use of pattern recognition, intertwined with sorting and repeated simplification and classification of communications, the present invention seeks to find a meaningful and functional process by which one can reduce human communication down to its base meaning, i.e., the concepts being communicated.

Natural language processing, the subject of the present invention, has been an area of interest for the inventor for some time. His early inventive efforts in this field and an early overview of this field are given in “Natural-Language Processing By Computer: A New Approach,” the inventor's Ph.D. dissertation submitted to The Johns Hopkins University, Baltimore, Md. in 1981. The teachings and disclosure of this work are hereby incorporated by reference.

In a preferred embodiment, the present invention takes the form of a piece of computer software that is used behind a standard piece of voice or handwriting recognition software. Such recognition software is assumed to convert the words sensed by the computer's input device and to store them in a memory device in the form of the properly spelled words.

Alternatively, the language processor software of the present invention can analyze and respond to the input that is entered into a computer by one's use of a keyboard or other data entry device that results in properly spelled sentences, questions, etc. being entered into a computer.

The language processor software version of the present invention consists of two different parts. One is a knowledge base, which is made up of three look-up tables (i.e., word, phrase and concept) or databases. The other part is the actual algorithm which is used for navigating this knowledge base to reduce a user's input down to an understandable concept. See FIG. 1.

Understanding of such concepts allows one to use them to direct a computer's actions. For example, in response to an understood question, a computer could find the answer to an understood question in a information database to which the computer has access.

Of the present invention's knowledge base, we first consider its “word” look-up table or its vocabulary database. To each word in this database we assign a semantic symbol. See FIGS. 2( a)-(c). In examining FIG. 2, it can be noted that more than one of the words in our base vocabulary can share the same semantic symbol.

The logic behind the semantic symbols that are assigned to the various words is explained as follows:

(a) If two words can be exchanged in a message without significantly changing the concept of the message, then those two words are deemed to be semantically equivalent. For example, one can observe that “want” and “need” can be exchanged in most uses without changing the concept communicated in a message: “I want to see my balance” and “I need to see my balance” communicate similar concepts. In fact, in most cases where “want” or “need” follow the pronoun “I” the meaning of these two words is equivalent.

(b) There is no significance to the code or number used in the semantic symbol representations of the words with the present invention's vocabulary database. The only requirement for such codes or numbers is that they be unique from the other numbers or codes that are used for other “nonequivalent” words in the vocabulary database.

For the purpose of explaining the logic of the present invention, we refer to communications such as “I want to see my balance” and “I need to see my balance” as “surface structures” that can be reduced down to a single concept or “deep structure” which is usually directed at a parameter or work object. For example, in the above communications the parameter or work object is “balance.”

The words, phrases and concepts to be included in the databases of the various application-directed embodiments of the present invention are preferably identified as a result of frequency analyzing the words, phrases and concepts used in dyadic communications of the sort that occur during the goal-directed behavior (e.g., two communicators performing a task or jointly trying to solve a problem) applicable to the application or task for which a specific embodiment is sought. In some cases, the communications to be studied will be from situations where both communicators are human; in other cases, one communicator will be human and the other will be a computer. The communication to be analyzed in detail will be only that of the human.

Sources for these communications could be the technical literature that documents scientific studies of applicable communications, and voice interface simulations of human to computer interaction. Other sources could be applicable transcripts found online.

In the analyses, such communications are preferably processed through collocational algorithms to determine a number of characteristics or properties with respect to the frequency of the words, grouping of words, etc. used in these communications. For example, analysis of these communications will usually identify which words should be included in one's “word” database.

Additionally, it can be determined which words in these communications frequently appeared next to each other in chains of two words groupings, three words groupings and greater length groupings. These are identified as multi-word phrases (i.e., frequently occurring groupings of two or more words) for inclusion in our “phrase” database.

Also, if one assumes that a communication is comprised only of phrases and disregards trying to identified the various parts of speech (i.e., subjects, verbs, pronouns, etc.) of such communications, one is led to identify what I refer to as “single-word phases” (i.e., frequently verbs; words that appear in the “word” database and also in the “phrase” database) and to group adjectives with the words they modify for phrase identification purposes.

As an example, consider the following different “surface structures,” which all share the same “deep structure,” from an analysis of various recorded communications of individuals communicating with their checkbook balancing programs:

-   “I would like to see my checkbook balance,” -   “I need to see my checkbook balance,” -   “I will need to see my checkbook balance?” -   “I am going to need to see my checkbook balance.”

From my analysis of these communications, I associate the pronoun “I” with the words that followed it. For example:

-   “I would like to,” -   “I need to,” -   “I will need to,” and -   “I am going to need to”

Following this same sort of logic in grouping adjectives with the words they modify for phrase identification purposes, one sees that “my checkbook balance” can also be identified as a “phrase,” and thus added to our phrase database.

For these communication examples, it then follows that the verb “see” will be classified as a single-word phrase and thus will appear in both our word and phrase databases.

FIGS. 3( a)-(b) show a portion of the phase database for one preferred embodiment of the present invention. As in the word database, to each phrase in this database there is assigned a phrase semantic symbol.

The logic behind the semantic symbols identified in this phrase database is explained as follows:

(a) If two phrases can be exchanged in a verbal communication without significantly changing its concept or deep structure, then those two phrases are deemed to be semantically equivalent and given the same semantic symbol. For example, semantic representations for “I want to” and “I would like to” can be exchanged in most uses without changing a message's deep structure.

(b) The semantic symbols that are associated with these phrases are constructed such that the first digit or alphanumeric character in these symbols has a special significance and identifies sub-groupings having a common feature. The balance of these numbers or codes for these symbols only needs to be unique from the other numbers or codes for the other phrases that are not semantically equivalent. The significance of this first digit lies in the manner in which it is used for grouping various types of phrases into classes for easy identification.

During my frequency studies of communications, I observed that the phrases that preceded and followed a verb phrase, which I denote as “wrapper phrases”, functioned to determine the “directionality” of the deep structure's verb. For example, I distinguish the is following surface structures as having opposite directionalities:

“I must get my balance,”

“You need to get my balance for me.”

In the first communication, the leading phrase identifies the one to whom the information about the balance must go. In the second communication, the leading phrase identifies the one who must do the work (i.e., “you,” which is the computer being served by the language processor of the present invention) to get the information about the balance.

To distinguish these situations, I use a leading “a” to distinguish those leading wrapper phrases which identify the recipient of the computer's output, and a “b” to distinguish those leading wrapper phrases which identify the one to do the work. See FIGS. 3( a)-(b).

Similarly, I use a leading “c” to distinguish those trailing wrapper phrases which identify the recipient of the computer's output, e.g., “for me” is given the semantic representation of “c004” A “d” is used to distinguish those trailing wrapper phrases which identify the one to do the work, e.g., “from you” is given the semantic representation “d003”.

In addition to leading wrapper and trailing wrapper phrases, my studies of communication have revealed that it proves useful to also identify pre-leading wrapper phrases that occasional occur with leading wrapper phrases. Such phrases are coded with the letter “e” such as e003 for “go ahead and”.

Continuing with the identification of such sub-grouping of phrases, I have chosen to identify verbs by the letter “f,” i.e., “get” is given the semantic representation “f110”.

As I continued to utilize such sub-grouping, it became apparent to me that these leading alphanumeric characters could be used to direct how the algorithm of the present invention processes a particular phrase in a communication. For example, leading alphanumeric characters in the range of “a” through “I” are used in the present invention to help identify how such phrases communicate a concept.

Meanwhile, phrases with a leading alphanumeric that follows later in the alphabet than “l” are to be initially ignored by the algorithm as it seeks to identify the concept contained within an imputed communication. For example, phrases identified with a leading character of “m” are set aside as parameters that identify an object to which a phrase or concept is directed (e.g., “email message”—m003). Phrases identified with a leading character of “n” are phrases that identify a subcategory of information associated with an object that has been categorized as an “m” phrase (e.g., “the subject field of an email message”—n038).

Phrases identified with a leading character of “o” are set aside as parameters for identifying a specific object, such as “the last” or “the second”. Phrases identified with a leading character of “u” are set aside as supplementary phrases, i.e., indicators of politeness (e.g., “please”—u004, “if you will”—u005) and other phrases peripheral to the initial identification of the concept of the inputted communication. See FIG. 4 for an abbreviated key that identifies the significance of the various alphanumeric characters used in the present invention.

As this sub-grouping of phrases moved forward, I discovered that I was able to easily identify and account for more and more of the variability in one's communications. Each time I identified a phrase and included it in my phrase database, I was effectively accounting for more and more of the variability of human expression. Taken to its extreme when all possible phrases are identified and placed in a phrase database, one is left with trying to analyze a communication in which the only unidentified pieces are the nouns or objects of the communication, e.g., when one is asking a computer to find certain information in its database, these nouns identify the information which is desired from the database.

Once one has a way to try to account for much of the variability of typical goal-directed communications, one is better prepared to try to identify the concepts or “deep structures” within such communications. Upon undertaking frequency analysis of phrase semantic symbols for many communications, I again discovered significant repetition in the format of these phrase semantic symbols. This led me to create a concept database in which I try to categorize the various types of concepts being communicated in typical goal-directed communications.

FIGS. 5( a)-(b) show a portion of a preferred embodiment for a concept database or a look-up table for use with the present invention. As in the prior databases, to each concept in this database there is assigned a semantic symbol. This proves to be especially useful when we are trying to understand communications having more than one concept. Also, if it happens that two concepts can be exchanged in a verbal communication without significantly changing its meaning, then those two concepts are deemed to be semantically equivalent and given the same concept semantic symbol.

With the above descriptions of the word, phrase and concept databases, it proves useful to consider further the algorithm used to analyze a communication directed at the natural language processor of the present invention. In order for the present invention to understand the concepts within a communication, semantic symbols from the software's vocabulary look-up table are used to replace the words comprising the inputted communication.

Care is given to arrange the symbols in the same order as their corresponding words which appeared in the inputted communication. See FIG. 6 for the semantic symbol representation of the input “I would like to get my 401k account balance.”

For the purpose of this discussion, this symbolic representation of the inputted communication will be referred to as a word vector. This vector (i.e., 019 009 143 031 012 038 803 695 217) represents the semantic reduction of the words, or the first pattern reduction step in the algorithm of the present invention. It is important to note that this single vector can, in cases where there are multiple words corresponding to each semantic symbol, represent many different ways to express the same concept.

In the next step, the word vector (i.e., 019 009 143 031 012 038 803 695 217) is used to begin to search through a phrase database to create a phrase vector which is representative of the inputted communication, see FIGS. 3( a)-(b). The logic behind this search is explained as follows:

(a) The identification of phrases has a directionality to it—that is, one moves from left to right through the list of the semantic symbols that have been substituted for the words in the verbal communication of interest, wherein a semantic symbol appearing on the left indicates that its corresponding word was uttered before the word represented by the semantic symbol appearing to its right. One seeks to identify the largest or longest string possible of word semantic symbols from those phrases that have been compiled into the database of phrases.

(b) Having identified a first phrase at the beginning of our vector of semantic representations for words, our phrase identification search engine examines the semantic symbols that lie to the right of the identified phrase in order to identify any other recognizable phrases that appear in our phrase database—always trying to identify the longest possible strings of semantic representations.

Thus, for the word vector (e.g., 019 009 143 031 012 038 803 695 217) one initially searches for a match for the whole vector. Finding no match, one searches for a match for the whole vector minus the last, or furtherest right, semantic representation (i.e., 019 009 143 031 012 038 803 695), and, finding no match, again searches for a match for the whole vector minus the next-to-last semantic representation (i.e., 019 009 143 031 012 038 803). This process of searching the phrase table for phrases having ever shorter strings continues to be repeated until one finally finds a match (e.g., 019 009 143 031). See FIG. 7.

At this point, one takes the semantic symbol a002 and saves it in the first, or left-most, position of what is defined as a phrase vector.

The phrase searching process continues with the next set of semantic symbols to the right of the last symbol in the identified phrase (i.e., 012 038 803 695 217) being searched for a match in the phrase table. In the example at hand, one finds that only the single semantic symbol, 012 can be matched. It yields the phrase semantic symbol of f110.

This matching process continues until one finally find a match for the array of 038 803 695 217, which yields the phrase semantic symbol of m117. This combination of matched phrase semantic symbols is used to create the phrase vector: “a0002 f110 m117.”

From searching for the concepts contained within such communications expressed by their phrase semantic symbol representations, I discovered many repeating patterns of phrases in such communications. For example, I often observed an “a” phrase preceding an “f” phrase followed by an “m” phrase” and a “d phrase,” as in “I need to get my balance from you,” which converted to phrase semantic symbols as “a002 f110 n801 d003.”

This analysis led me to realize that initially ignoring some phrases made it easier to discern the concept or “deep structure” contained within a communication. This led to my decision to denoted these initially to be ignored phrases by assigning them a leading alphanumeric that follows later in the alphabet than “I.”

When one gets to the point in the analysis of the inputted communication where they have clearly identified the recognizable phrases in an inputted communication (i.e., accounted for the possible variability within an inputted communication), one assumes that the remaining unidentifiable phrases are the specific identifying parameters for the objects within the communication. For example, the inputted query of “Get me the email address for Betty Mayfield” is translated by the present invention to the phrase vector: f110 c001 n832 “Betty Mayfield”.

Setting aside the object part of this concept vector, one is now left with: f110 c001 n832. The present invention's process of discerning the meaning of such an expression continues by searching a concept database, such as that shown in FIG. 5.

The logic behind the manner in which the algorithm of the present invention searches these phrase vectors is given below:

(a) As with phrases, concept identification has a directionality to it—one searches from left to right through the list of semantic symbols for the phrases that comprise the inputted communication of interest and aims to identify the largest (or longest in terms of the number of phrase semantic symbols) concept possible. Having done this, the search engine of the present invention moves across the symbolic inputted communication to identify the next largest identifiable concept. In this manner our search engine is capable of identifying multiple concepts in a single communication.

(b) The semantic symbols that are associated with these concepts or “deep structures” consist of two, capitalized alphanumeric characters. There is no significance to these capitalized characters. The only requirement for them is that they be unique from the other characters that are used for other “nonequivalent” concepts in the concept database.

The algorithm of the present invention then uses the concepts identified within an inputted communication to direct the actions of the computer. For example, for the communication “Get me the email address for Betty Mayfield” and its representative phrase vector “f110 c001 n832 Betty Mayfield,” one finds that the phrase combination “f110 c001” is found in the concept table, and is represented by the semantic symbol “GM” which stands for the command “Get me.” Thus, the initial input can be expressed in our semantic symbols as “GM n832 Betty Mayfield.”

The algorithm's identification of “GM” can be used to cause the computer to search its database for the object appearing behind the identified concept, i.e., the phrase n832 which is the semantic representation for “the email address.” The computer responds by searching its database for “email address” and the fields by which these addresses are classified. If “Name” is found to be a field of classification for the emails, the computer will make an attempt to retrieve the email address for the record whose name matches the unidentified phrase “Betty Mayfield”.

As another example of how this step proceeds, consider the situation where a user asks a computer that utilizes the natural language processor software of the present invention and that is attached to a personal information manager application “What are my active to do list items?” The software of the present invention converts this input into the semantic symbols “W2 n906 m025” where “W2” represents the deep structure for “What are”, n906” represents the property “active”, and “m025” represents the object “to do list items”. This information can then be passed to a database in the form of a SQL query.

The computer code given in FIG. 8 is from just such a computer application. In it you can see that on the first line that the block of code following that line will be executed because the action does in fact equal “W2”. Because the descriptor A on the second line down does in fact equal “m025” or the object “to do list items”, the block of code next checks to see that descriptor B equals “n906” the property for “active. Given the satisfaction of these three conditions, the personal information manager application program communicates back the desired tasks that are still active.

As another example of how a preferred algorithm of the present invention operates, consider the action taken by an algorithm-directed computer in response to the following input: “I need to change the deposit date . . . it should be Jan. 22, 2003.”

The difficulty in interpreting this input centers around how to interpret the pronoun “it” in the second part of the communication (i.e., an “explicit pronoun”). However, the algorithm of the present invention can accommodate this input by maintaining the context within which the communication is occurring. The context is maintained by holding the results of the initially inputted messages in place while a further message is awaited. Given an initial input “I need to change the deposit date,” the algorithm converts this message into semantic symbols and searches for phrases and concepts. It represents the input as “AL m900 n808,” where AL is the symbol for the concept “to change something,” m900 is the symbol for the primary object, “deposit,” and n805 is the symbol for secondary object “date.” These are initially stored in a part of the computer's memory that is defined as the algorithm's “rolling contact manager.” They are stored as, respectively, the action or concept, the primary object, and the secondary object of the communication.

When the user follows with “it should be Jan. 22, 2003”, the natural language processor knows exactly what she or he is talking about with respect to “it”. With the previously stored symbolic inputs, the algorithm of the present invention understands that the communicator or natural language processor user is implicitly referring to the “date.”

The algorithm of the present invention is also seen to be able to handle communications that involve “implicit action” queries. For example, an inputted communication such as: “What is the average income for California? And the unemployment rate?, where in the second query both the deep structure “what is” and the object “California” are implicit.

The algorithm of the present invention accommodates such questions by again identifying the concepts (i.e., “what is,” which is denoted as W2) and objects (i.e., primary object of “California,” secondary object of “the average income”) within the first part of this communication and storing them in memory. Thus the context of the communication is set.

When the user follows this query with a second question, “And the unemployment rate?”, the phrase value for “unemployment rate” (another secondary object) replaces the previous secondary object “the average income”. When the natural language processor of the present invention attempts to process the input void of a concept or deep structure, it reverts make to the saved values in context and realizes that it has a complete query therein. When the user asked “And the average unemployment rate?”, the user was implicitly asking “What is the average income for California?” Everything one needs to determine this was saved in the “rolling context manager” of the present invention.

As yet another example of how a preferred algorithm of the present invention operates, consider the action taken by our algorithm-directed computer in response to the following input: “Can you tell me Betty's phone number?,” where our natural language process must equate “Betty's phone number” with “the phone number of/for Betty.”

In considering how the algorithm of the present invention can accommodate this “possessive noun” challenge, it is instructive to first consider what sort of “preprocessing” of the inputted communication is conducted by the present invention. For example, when, in examining the words that are inputted, the algorithm of the present invention encounters a contraction (e.g., I'll, you've), it converts such inputs to their non-contracted form's (e.g., I will, you have). This converted message is then processed as if it had never employed a contraction.

Similarly, this preprocessing step also entails converting possessive nouns and pronouns (e.g., Betty's, its) to specifically defined equivalents (e.g., of Betty, of it) which indicate the possessive without using an “s” or a “'s”. Such converted messages are then processed as if it had never employed a possessive using an “s” or a “s”.

Another task which the algorithm of the present invention accomplishes is some general selective editing, which can prove to be especially valuable when the communications are being verbally inputted into a computer. In such circumstances, it can often happen that the users of natural language processors will direct their verbal communications to others in the vicinity besides just the computer's input microphone (e.g., workers collaborating on a project could be discussing not only the work at hand, but also could pepper their conversation with comments about Sunday's football game, remarks directed at mocking their boss, and complaints about spouses).

The computer's audio input is then challenged to understand verbal communications that may have apparently disjointed thoughts and concepts. To resolve this situation, a preferred embodiment for the algorithm of the present invention will ignore that part of the verbal input which is outside of the context of the concept database that will have been created for a specific applicational use of the present invention. When the input is specific to the designed applicational use of the present invention, this natural language processor will search its “deep structures” or concept database and their associated objects to identify the proper action to be taken by the computer in response to the relevant or non-ignored input.

As previously mentioned, a preferred embodiment of the algorithm of the present invention can accommodate communications having multiple concepts. The means by which this is accomplished is illustrated in FIG. 9. This printout from a display screen of the present invention shows the intermediate steps used by the software disclosed herein for entering into a computer the complex communication: “I would like to enter a credit card transaction and I want to create a new savings account with a balance of $860.20.”

The display screen is seen to have lines that show the semantic symbols generated at each stage of the algorithm's action on this input. On the line labeled “Final” one can see that the language processor of the present invention has correctly parsed this input as having two key concepts (i.e., enter and create), two primary objects (i.e., “credit card transaction” and account) and a secondary object (i.e., balance). The name of the “account” is the unrecognized word “savings,” and the amount of the balance is the unrecognized “$680.20.”

To better appreciate the interpretative power of the present invention, consider the power of the search conducted with just the phrases “a002 f110.” When reviewing the information shown in the phrase database, one discovers that the phrases “a002 f110” represents over three hundred difference ways that a user might ask for his/her 401k account balance. Multiply this times the six ways the primary object “401k balance” can be represented and we have accommodated 1,800 different ways a user might ask for a specific piece of information with a single table entry and a complementary object. See FIGS. 10( a)-(c) for this illustrative example.

In an early demo application of the present invention, a specific application had an object vocabulary that consisted of 46 unique entries. For this application, we find that there 82,800 different ways of asking for these 46 unique pieces of information from the generalized concept symbolized by AA. Assuming that there are in fact 43 different table entries in the concept database for AA, the retrieval operation of the present invention can understand 3,560,400 different ways to ask for these 46 unique objects, all from a database with fewer than 1,500 symbolic entries across words, phrases, and concepts.

With thirty-one entries of different semantic symbols for various concepts, one finds that a table with 1,500 entries can represent over 100 million user inputs, in 1.2 megabyte of space. The present invention is thus seen to efficiently accommodate a wide range of variability in how a user might attempt to communicate a particular thought or concept.

Although the foregoing disclosure relates to preferred embodiments of the invention, it is understood that these details have been given for the purposes of clarification only. Various changes and modifications of the invention will be apparent, to one having ordinary skill in the art, without departing from the spirit and scope of the invention as hereinafter set forth in the claims. 

1. A method for converting a natural language communication, said method comprising: a computer processor searching a natural language communication to identify words in said communication contained in a vocabulary database of words, wherein each of said database words is representable by a designated word semantic symbol and multiple different words in the vocabulary database determined to have a similar meaning are represented by the same semantic symbol in the vocabulary database; expressing said communication in terms of word semantic symbols from the vocabulary database that correspond to each of said words identified in said communication; searching said communication when expressed in terms of word semantic symbols so as to identify phrases in said communication contained in a phrase database of phrases, wherein each of said database phrases is representable by a designated phrase semantic symbol and multiple different phrases in the phrase database determined to have a similar meaning are represented by the same semantic symbol in the phrase database; expressing said communication in terms of phrase semantic symbols from the phrase database that correspond to each of said phrases identified in said communication; searching said communication when expressed in terms of the phrase semantic symbols so as to identify concepts in said communication; and expressing said communication in terms of concept semantic symbols that correspond to each of said concepts identified in said communication.
 2. The method of claim 1, further comprising: upon identifying said concepts in said communication, causing the processor to take action responsive to said identified concepts into data that can be processed by the processor.
 3. The method of claim 1, wherein searching said communication when expressed in terms of the phrase semantic symbols so as to identify concepts in said communication further comprises: searching said communication when expressed in terms of the phrase semantic symbols so as to identify concepts in said communication contained in a concepts database of concepts, wherein multiple different phrases corresponding to the same concept are represented by the same semantic symbol in the concepts database.
 4. The method of claim 1, wherein the natural language communication comprises an audio communication.
 5. The method of claim 1, wherein the natural language communication comprises a user instruction to a computer system, and the method further comprises: determining the instruction from the identified concepts.
 6. An apparatus comprising: means for receiving a communication; means for storing semantic representations of at least words, phrases, and concepts, wherein multiple different words determined to have a similar meaning are represented by the same semantic representation stored in the means for storing and multiple different phrases determined to have a similar meaning are represented by the same semantic representation stored in the means for storing; and means for determining a semantic representation of the communication using the semantic representations for words, phrases, and concepts stored in the means for storing, wherein the means for determining a semantic representation is further operable to perform at least a three-stage reduction of the communication to determine the semantic representation of the communication using words, phrases, and concepts and corresponding semantic representations stored in the means for storing.
 7. The apparatus of claim 6, wherein the semantic representation of the communication includes semantic representations of stored concepts.
 8. The apparatus of claim 7, further comprising: processor means for taking action in response to the stored concepts identified from the semantic representations.
 9. A method for performing a multistage reduction of a communication, the method comprising: receiving the communication at a computer, wherein the communication includes at least one concept expressed in words; performing a multistage reduction of the communication to determine a semantic representation of the communication, wherein the multistage reduction includes at least using stored words, phrases, and concepts and corresponding semantic representations to semantically represent the communication wherein each of said stored words is represented by one of the stored semantic representations and multiple different words determined to have similar meanings are represented by the same stored semantic representation, and each of said stored phrases is represented by one of the stored semantic representations and multiple different phrases determined to have similar meanings are represented by the same stored semantic representation; and using the semantic representation of the communication to identify a proper action to be taken by the computer.
 10. The method of claim 9, wherein the multistage reduction includes using each of the stored words, phrases, and concepts at different stages of the multistage reduction.
 11. The method of claim 9, wherein performing a multistage reduction at least comprises: determining whether any of the stored words are in the communication; for any of the stored words in the communication, identifying corresponding word semantic symbols representing the stored words; using the word semantic symbols to identify stored phrases corresponding to the stored words in the communication, wherein the stored phrases are represented as phrase semantic symbols; using the phrase semantic symbols corresponding to the identified phrases to identify corresponding stored concepts for the communication.
 12. The method of claim 11, wherein the stored concepts are represented as concept semantic symbols, the method further comprising: expressing the identified stored concepts as the corresponding concept semantic symbols.
 13. The method of claim 11, wherein identifying corresponding word semantic symbols representing the stored words comprises: searching a vocabulary database using to identify the corresponding word semantic symbols representing the stored words, wherein multiple words in the vocabulary database determined to be exchangeable without significantly changing a concept in a communication are represented by a same semantic symbol in the vocabulary database.
 14. The method of claim 13, wherein identifying stored phrases corresponding to the stored words in the communication comprises: searching a phrase database using the identified words semantic symbols to identify the corresponding phrase semantic symbols associated with the identified words, wherein multiple phrases in the phrase database determined to be exchangeable without significantly changing a concept in a communication are represented by a same semantic symbol in the phrase database.
 15. The method of claim 14, wherein identify corresponding stored concepts for the communication comprises: searching a concept database using the identified phrase semantic symbols to identify corresponding concept semantic symbols associated with the identified phrases, wherein multiple concepts in the concepts database determined to be exchangeable without significantly changing a concept in a communication are represented by a same semantic symbol in the concept database.
 16. The method of claim 9, wherein the semantic representation of the communication identifies concepts in the communication, and the proper action to be taken by the computer is determined based on the identified concepts.
 17. The method of claim 9, wherein the received communication comprises an audio communication. 